/* let counter = { number: 0}


//ClassCounter
let oldProps = {
    counter
}
//ClassCounter
counter.number = 1;
let newProps = {
    counter
}

 */

let counter =  { a1:{a2:{a3:0}},b1:{b2:{b3:0}} }
let newCounter = {
    ...counter,
    a1:{
        ...counter.a1,
        a2:{
            ...counter.a1.a2,
            a3:1
        }
    }
}
console.log(counter.b1 === newCounter.b1)
